<#include "_layout.html"/>
<@layout>
<div class="breadcrumbs">
    <div class="container clr">
        <div id="breadcrumbs">
            <h1>
                <i class="fa fa-folder-open"></i>
                <#if !taxonomy??>
                    ${module.title}
                    <#elseif taxonomy.type=='tag'>标签
                        <#elseif    taxonomy.type=='category'>分类
                            <#else> 其他
                </#if>
            </h1>
            <div class="breadcrumbs-text">
                <ol class="breadcrumb">
                    <li><i class="fa fa-home fa-fw"></i>&nbsp;<a href="${OPTION('web_domain')}">Home</a></li>
                    <li class="active">${WEB_TITLE!}</li>
                </ol>
                <#if taxonomy??>
                    ${taxonomy.text!}
                </#if>
            </div>
        </div>
    </div>
</div><!-- Header Banner -->
<div class="container two-col-container">
    <div id="main-wrap-left">
        <div class="bloglist-container clr">
            <h2 class="home-heading clr">
                <span class="heading-text-blog"><i class="fa fa-chevron-right"></i>最新头条</span><a href="#new"
                                                                                                 target="_blank">分享</a>
            </h2>
            <script>
                $(function () {
                    var obj = {
                        "num": $("#lblnum").text(),
                        "url": window.location.pathname
                    };
                    $("#addnum").click(function () {
                        contentId = this.contentId;
                        $.ajax({
                            type: 'POST',
                            url: '/Home/ClickGood?cid='+contentId,
                            data: obj,
                            success: function (data) {
                                $("#lblnum").text(data.Num);
                            }
                        });
                    });
                });
            </script>
            <@jp.contentPage pageSize="10" >
            <#list page.getList() as content>
                <article class="home-blog-entry col span_1 clr">
                    <div id="addnum"
                         style="margin-right:10px;float: left;display: inline;width: 70px; height: 70px; background-color: #00acd6">
                        <div align="center" style="margin-top: 10px;">
                            <label style="color: White; font-size: 20pt;">
                                顶</label></div>
                        <div align="center">
                            <label id="lblnum" contentId="${content.id}" style="color: White; font-size: 10pt;">
                                1000</label></div>
                    </div>
                    <div class="home-blog-entry-text clr" style="display: inline;">
                        <h3>
                            <a href="${content.url}"
                               title="${content.title}">${content.title}</a>
                        </h3>
                        <!-- Post meta -->
                        <div class="meta">
                            <span class="postlist-meta-cat"><i class="fa fa-bookmark"></i>${content.getTaxonomyAsUrl('tag','class=category')!'未分类'}</span>
                            <span class="postlist-meta-time"><i class="fa fa-calendar"></i>${content.created!string("yyyy-MM-dd")}</span>
                            <span class="postlist-meta-views"><i
                                    class="fa fa-fire"></i>浏览: ${content.view_count!'0'}</span>
                            <span class="postlist-meta-comments"><i class="fa fa-comments"></i><a
                                    href="${content.url}#respond">评论: ${content.comment_count!'0'}</a></span>
                        </div>
                    </div>
                    <div class="clear"></div>
                </article>
            </#list>
            <div class="clear"></div>
            <div class="pagination">
                <@pagination>
                <#list pages as page>
                <span class='pg-item'>
            <span class='${page.style!}'>
                <a href="${page.url!}">${page.text!}</a>
            </span></span>
                </#list>
            </@pagination>
        </div>
    </div>
</div>
<script type="text/javascript">
    $('.site_loading').animate({'width': '55%'}, 50);  //第二个节点
</script>
<div id="sidebar" class="clr">
    <#include "include/_search_box.html" />
    <#include "include/_tag_box.html" />
    <#include "include/_tintabs_box.html" />
    <#include "include/_tinslider_box.html" />
    <#include "include/_weixin_box.html" />
    <div class="floatwidget-container">
    </div>
</div>
<script type="text/javascript">
    $('.site_loading').animate({'width': '78%'}, 50);  //第三个节点
</script>
</div>
<!-- Stickys -->
</@jp.contentPage>
</div>
</@layout>
